package entities;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the AdminUser database table.
 * 
 */
@Embeddable
public class AdminUserPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="Adminstrator_admin")
	private String adminstrator_admin;

	@Column(name="User_user")
	private String user_user;

    public AdminUserPK() {
    }
	public String getAdminstrator_admin() {
		return this.adminstrator_admin;
	}
	public void setAdminstrator_admin(String adminstrator_admin) {
		this.adminstrator_admin = adminstrator_admin;
	}
	public String getUser_user() {
		return this.user_user;
	}
	public void setUser_user(String user_user) {
		this.user_user = user_user;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof AdminUserPK)) {
			return false;
		}
		AdminUserPK castOther = (AdminUserPK)other;
		return 
			this.adminstrator_admin.equals(castOther.adminstrator_admin)
			&& this.user_user.equals(castOther.user_user);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.adminstrator_admin.hashCode();
		hash = hash * prime + this.user_user.hashCode();
		
		return hash;
    }
}